package com.drg.center.entity.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guaike.core.entity.annotation.EnumConvert;
import com.guaike.core.entity.enums.DataPermissonTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/24
 */

@Data
@ApiModel("系统用户详细信息")
public class SysUserExtVO extends SysUserVO{

    @ApiModelProperty("数据权限规则(字典码:10004)")
    @EnumConvert(clazz = DataPermissonTypeEnum.class, from = "code", to = "description")
    private Integer scopeType;



    @ApiModelProperty("冻结原因")
    private String frozenReason;

    @ApiModelProperty("冻结失效时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime frozenExpireDate;

    @ApiModelProperty("角色ID集合")
    private List<Long> roleIdList;

    @ApiModelProperty("角色")
    private List<String> roleNameList;

    @ApiModelProperty("岗位ID集合")
    private List<Long> positionIdList;

    @ApiModelProperty("岗位")
    private List<String> positionList;

    @ApiModelProperty("所属主部门ID")
    private String maindeptCode;

    @ApiModelProperty("所属主部门名称")
    private String mainDeptName;

    @ApiModelProperty("兼职部门集合")
    private List<SysDeptVO> deptList;

    @ApiModelProperty("权限部门集合")
    private List<SysDeptVO> scopeDeptList;

}
